from answer.serializer.grad_serializer import Grad, GradUser, GradSerializer, GradUserSerializer
from rest_framework import generics


class GradList(generics.ListCreateAPIView):
    queryset = Grad.objects.all()
    serializer_class = GradSerializer


class GradUserList(generics.ListCreateAPIView):
    queryset = GradUser.objects.all()
    serializer_class = GradUserSerializer


class GradDetail(generics.RetrieveUpdateDestroyAPIView):
    queryset = Grad.objects.all()
    serializer_class = GradSerializer


class GradUserDetail(generics.RetrieveUpdateDestroyAPIView):
    queryset = GradUser.objects.all()
    serializer_class = GradUserSerializer

